Fluent Assertions Documentation
FluentAssertions.Collections Namespace / GenericDictionaryAssertions<TCollection,TKey,TValue,TAssertions> Class / ContainKeys Method / ContainKeys(TKey[]) Method
The expected keys
In This Topic
    ContainKeys(TKey[]) Method
    In This Topic
    Asserts that the dictionary contains all of the specified keys. Key comparison will honor the equality comparer of the dictionary when applicable.
    Syntax
    public AndConstraint<TAssertions> ContainKeys( 
       params TKey[] expected
    )

    Parameters

    expected
    The expected keys
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also